@section('title')
    成为律师 @parent
@show

@section('subcontent')
{{ HTML::script('js/center/lawyer/info.js') }}
{{ HTML::script('js/jQuery-File-Upload-9.7.1/js/vendor/jquery.ui.widget.js') }}
{{ HTML::script('js/jQuery-File-Upload-9.7.1/js/jquery.iframe-transport.js') }}
{{ HTML::script('js/jQuery-File-Upload-9.7.1/js/jquery.fileupload.js') }}
<!--[if (gte IE 8)&(lt IE 10)]>
{{ HTML::script('js/jQuery-File-Upload-9.7.1/js/cors/jquery.xdr-transport.js') }}
<![endif]-->

<div id="mainUserInfo">
<!-- 我的资料 认证为律师 -->
<div class="mod-main mod-comm lefta-box">
    <div class="mt">
		<h3 class="curr">认证律师</h3>
    </div>
    <div class="mc">
    	<div class="user-set userset-lcol">
    		<form id="info_form">
			    <div class="form">
			    	<div  class="iconimg"><img src="{{ Config::get('app.url') }}/img/icon_11.png">&nbsp;&nbsp;<span>从业信息</span></div>
			        <div class="form-item">
			            <span class="label">
			              	<span style="color:#004799;padding:10px"></span>执业证号：{{ $data['user']['lawyer']['license'] }}
			            </span>
			        </div>
			        <div class="form-item">
			            <span class="label">
			              	<span style="color:#004799;padding:10px"></span>执业机构：
			            </span>
			            <div class="fl">
			                <input type="text" class="itxt itxt1" name="company_name" id="company_name" value="{{ $data['user']['lawyer']['company_name'] }}">
			            </div>
			        </div>
			        <div class="form-item">
			            <span class="label">
			                <span style="color:#004799;padding:10px"></span>执业年限：
			            </span>
			            <div class="fl">
			            	<select name="practice_period" class="selt mr5" id="practice_period">
			            		<option value="1to3" @if ($data['user']['lawyer']['practice_period'] == '1to3') : selected="selected" ? selected="" @endif >1-3年</option>
			            		<option value="3to5" @if ($data['user']['lawyer']['practice_period'] == '3to5') : selected="selected" ? selected="" @endif >3-5年</option>
			            		<option value="5to10" @if ($data['user']['lawyer']['practice_period'] == '5to10') : selected="selected" ? selected="" @endif >5-10年以上</option>
			            		<!-- <option value="10" @if ($data['user']['lawyer']['practice_period'] == '10') : selected="selected" ? selected="" @endif >10年以上</option> -->
			            	</select>
			            </div>
			        </div>
			        <div class="form-item">
			            <span class="label">
			                <span style="color:#004799;padding:10px"></span>执业地区：
			            </span>
			            <div class="fl">
			                <select name="province" class="selt mr5" id="province"></select>
			                <select name="city" class="selt mr5" id="city" style="display: inline-block;"></select>
			                <select name="district" class="selt mr5" id="district" style="display: inline-block;"></select>
			            </div>
			        </div>
			        <div class="form-item">
			            <span class="label">
			                <span style="color:#004799;padding:10px"></span>执业证书：
			            </span>
			            <div class="fl">
							<div class="upload_wrap">
								<p class="js_cover upload_preview">
			                  		<img id='peituImg' src="{{ $data['user']['lawyer']['license_file'] }}" width="300" height="200"/>
			                  	</p>
				            </div>
						</div>
			        </div>
			        <div  class="iconimg"><img src="{{ Config::get('app.url') }}/img/07_03.png">&nbsp;&nbsp;<span>实名认证</span></div>
			        <div class="form-item">
			            <span class="label">
			                <span style="color:#004799;padding:10px"></span>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：{{ $data['user']['realname'] }}
			            </span>
			            <input  type="hidden" class="itxt" maxlength="20" id="realname" name="realname" value="{{ $data['user']['realname'] }}">
			            <!-- <input  type="hidden" class="itxt" maxlength="20" id="nikname" name="nikname" value="{{ $data['user']['nikname'] }}"> -->
			        </div>
			        <div class="form-item">
			            <span class="label">
			                <span style="color:#004799;padding:10px"></span>身份证件：
			            </span>
			            <div class="fl">
							<div class="upload_wrap">
								<p class="js_cover upload_preview">
			                  		<img id='peituImg' src="{{ $data['user']['lawyer']['ID_img'] }}" width="300" height="200"/>
			                  	</p>
				            </div>
						</div>
			        </div>
			        <div  class="iconimg"><img src="{{ Config::get('app.url') }}/img/07_06.png">&nbsp;&nbsp;<span>资费设置</span></div>
			        
			        <div class="form-item text_reply">
			            <span class="label" style="margin-top:35px;">
			                <span style="color:#004799;padding:10px"></span>图文咨询：
			            </span>
			            <div class="fl" style="margin:30px 0px 0 0;width:75px;">
			            	<a id="scrollBarTxt" style="text-align:center;">{{ $data['user']['lawyer']['text_reply_fee'] }}</a>元 / 次
			                <input type="hidden" class="text_reply_fee" name="text_reply_fee" value="">
			                <!-- <input  type="text" class="itxt" maxlength="20" id="text_reply_fee" name="text_reply_fee" value="{{ $data['user']['lawyer']['text_reply_fee'] }}">  -->
			            </div>
			            <div class="index fl" style="width:500px;">

							<input id="range_44" />

			            </div>
			        </div>
			        <div style=" line-height:40px; margin-left:150px; color:#999;margin-top:-20px">24小时内通过图片、文字进行咨询，不限条数</div>
			        
			        <div class="form-item phone_reply">
			            <span class="label " style="margin-top:35px;">
			                <span style="color:#004799;padding:10px"></span>电话咨询：
			            </span>
			            <div class="fl" style="margin-top:30px;width:75px;">
			            	<a id="scrollBarTxt2" class="phone_reply_fee" style="text-align:center;">{{ $data['user']['lawyer']['phone_reply_fee'] }}</a>元 / 次
			                <input type="hidden" class="phone_reply_fee" name="phone_reply_fee" value="{{ $data['user']['lawyer']['phone_reply_fee'] }}">
			                
			            </div>

			            <div class="index1 fl" style="width:500px;">

							<input id="range_45" />

			            </div>
			        </div>
			        <div  class="iconimg"><img src="{{ Config::get('app.url') }}/img/icon_12.png">&nbsp;&nbsp;<span>擅长领域</span></div>
			        <div class="form-item">
			            <span class="label">
			                <span style="color:#004799;padding:10px"></span>擅长领域：
			            </span>
			            <div class="fl">
			            	<div class="selectivity">
                                @foreach ($data['user']['lawyer']['work_scope'] as $key => $item) 
				            		<span class="multiple" data-item-id="{{ $item['key'] }}">
					    				<a class="multiple-remove">{{ $item['value'] }}<i class="fa fa-remove">X</i></a>
					    			</span>
				    			@endforeach
			            	</div>
			                <select name="work_scope" class="selt mr5" id="work_scope" data-disabled="disabled">
			                	@foreach ($data['work_scope'] as $key=>$item) 
			                			<option value="{{ $item['key'] }}">{{ $item['value'] }}</option>
								@endforeach
			                </select>
			                <!-- <span class="mgs">最多只能选3个！</span> -->
			            </div>
			        </div>
			        <div  class="iconimg"><img src="{{ Config::get('app.url') }}/img/icon_13.png">&nbsp;&nbsp;<span>经历案例</span></div>
			        <div class="form-item">
			            <p class="label">
			              	<span style="color:#004799;padding:10px"></span>个人简历：
			            </p>
			            <div class="fl">
			                <textarea class="textbox" id="introduce" name="introduce" value="">{{ $data['user']['lawyer']['introduce'] }}</textarea>
			                
			            </div>
			        </div>
			        <div class="form-item">
			            <p class="label">
			              	<span style="color:#004799;padding:10px"></span>执业经历：
			            </p>
			            <div class="fl">
			                <textarea class="textbox" id="experience" name="experience" value="">{{ $data['user']['lawyer']['experience'] }}</textarea>
			               </div>
			        </div>
			        <div class="form-item">
			            <p class="label">
			              	<span style="color:#004799;padding:10px"></span>成功案例：
			            </p>
			            <div class="fl">
			                <textarea class="textbox" id="law_cases" name="law_cases" value="">{{ $data['user']['lawyer']['law_cases'] }}</textarea>
			               </div>
			        </div>
			        <div class="form-item">
			            <span class="label">
			                &nbsp;
			            </span>
			            <div class="fl">
			            	{{ Form::token() }}
			                <a href="javascript:void(0)" class="btn-5 inpbg" id="seveLawyer">
			                    保存
			                </a>
			            </div>
			        </div>
			    </div>
			</form>
		</div>
    </div>
</div>
</div>
<!--[if IE 7]>
<style type="text/css">
        .menuItem{ margin-left:-130px; } 
    </style>
<![endif]-->
<script type="text/javascript">
var info_url = "{{ route('center.lawyer.info') }}";

var jumpUrl ="{{ Config::get('app.url') }}";
var user_lawyer_url = "{{ route('center.lawyer.info') }}";
//省市城的参数
var province_param = "{{ $data['user']['province'] }}";
var city_param = "{{ $data['user']['city'] }}";
var district_param = "{{ $data['user']['district'] }}"; 
var token = $("input:[name='_token']").val();
var userId = "{{ $data['user']['id'] }}";
var scrollBarTxt = $("#scrollBarTxt").text()
var scrollBarTxt2 = $('#scrollBarTxt2').text();
$(document).ready(function () {
	$(".irs-min").css("visibility","visible")
	var $range = $("#range_44"),
		$result = $("#result_44");

	var track = function (data) {
		delete data.input;
		delete data.slider;
		if (JSON) {
			$result.html(JSON.stringify(data, null, 2));
		} else {
			$result.html(data.toString());
		}
	};
	$range.ionRangeSlider({
		type: "double",
		min: 19,
		max: 199,
		from: 19,
		to: scrollBarTxt,
		step: 1,
		grid: false,
		onStart: track,
		onChange: track,
		onFinish: track,
		onUpdate: track
	});
	
	var $range = $("#range_45"),
		$result = $("#result_45");

	var track = function (data) {
		delete data.input;
		delete data.slider;
		if (JSON) {
			$result.html(JSON.stringify(data, null, 2));
		} else {
			$result.html(data.toString());
		}
	};
	$range.ionRangeSlider({
		type: "double",
		min: 19,
		max: 199,
		from: 19,
		to: scrollBarTxt2,
		step: 1,
		grid: false,
		onStart: track,
		onChange: track,
		onFinish: track,
		onUpdate: track
	});
	
});

</script>
{{ HTML::style('css/ion.rangeSlider.css')}}
{{ HTML::style('css/ion.rangeSlider.skinHTML5.css')}}
{{ HTML::script('js/ion.rangeSlider.js') }}
@show